package com.yidu.best.TA.Fundinventory.domain;

import java.math.BigDecimal;
import java.util.Date;

public class Casharap {
	private String cashARAPId;
	private String cashARAPNo;
	private String fundId;
	private String fundCode;
	private String fundName;
	private String accountId;
	private String accountNo;
	private String accountName;
	private BigDecimal arapAmount;
	private Date arapDate;
	private Integer arapFlag;
	private Integer arapType;
	private String description;
	
	public Casharap() {
	}

	public Casharap(String cashARAPId, String cashARAPNo, String fundId, String fundCode, String fundName,
			String accountId, String accountNo, String accountName, BigDecimal arapAmount, Date arapDate,
			Integer arapFlag, Integer arapType, String description) {
		super();
		this.cashARAPId = cashARAPId;
		this.cashARAPNo = cashARAPNo;
		this.fundId = fundId;
		this.fundCode = fundCode;
		this.fundName = fundName;
		this.accountId = accountId;
		this.accountNo = accountNo;
		this.accountName = accountName;
		this.arapAmount = arapAmount;
		this.arapDate = arapDate;
		this.arapFlag = arapFlag;
		this.arapType = arapType;
		this.description = description;
	}

	@Override
	public String toString() {
		return "Casharap [cashARAPId=" + cashARAPId + ", cashARAPNo=" + cashARAPNo + ", fundId=" + fundId
				+ ", fundCode=" + fundCode + ", fundName=" + fundName + ", accountId=" + accountId + ", accountNo="
				+ accountNo + ", accountName=" + accountName + ", arapAmount=" + arapAmount + ", arapDate=" + arapDate
				+ ", arapFlag=" + arapFlag + ", arapType=" + arapType + ", description=" + description + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result + ((accountName == null) ? 0 : accountName.hashCode());
		result = prime * result + ((accountNo == null) ? 0 : accountNo.hashCode());
		result = prime * result + ((arapAmount == null) ? 0 : arapAmount.hashCode());
		result = prime * result + ((arapDate == null) ? 0 : arapDate.hashCode());
		result = prime * result + ((arapFlag == null) ? 0 : arapFlag.hashCode());
		result = prime * result + ((arapType == null) ? 0 : arapType.hashCode());
		result = prime * result + ((cashARAPId == null) ? 0 : cashARAPId.hashCode());
		result = prime * result + ((cashARAPNo == null) ? 0 : cashARAPNo.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((fundCode == null) ? 0 : fundCode.hashCode());
		result = prime * result + ((fundId == null) ? 0 : fundId.hashCode());
		result = prime * result + ((fundName == null) ? 0 : fundName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Casharap other = (Casharap) obj;
		if (accountId == null) {
			if (other.accountId != null)
				return false;
		} else if (!accountId.equals(other.accountId))
			return false;
		if (accountName == null) {
			if (other.accountName != null)
				return false;
		} else if (!accountName.equals(other.accountName))
			return false;
		if (accountNo == null) {
			if (other.accountNo != null)
				return false;
		} else if (!accountNo.equals(other.accountNo))
			return false;
		if (arapAmount == null) {
			if (other.arapAmount != null)
				return false;
		} else if (!arapAmount.equals(other.arapAmount))
			return false;
		if (arapDate == null) {
			if (other.arapDate != null)
				return false;
		} else if (!arapDate.equals(other.arapDate))
			return false;
		if (arapFlag == null) {
			if (other.arapFlag != null)
				return false;
		} else if (!arapFlag.equals(other.arapFlag))
			return false;
		if (arapType == null) {
			if (other.arapType != null)
				return false;
		} else if (!arapType.equals(other.arapType))
			return false;
		if (cashARAPId == null) {
			if (other.cashARAPId != null)
				return false;
		} else if (!cashARAPId.equals(other.cashARAPId))
			return false;
		if (cashARAPNo == null) {
			if (other.cashARAPNo != null)
				return false;
		} else if (!cashARAPNo.equals(other.cashARAPNo))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (fundCode == null) {
			if (other.fundCode != null)
				return false;
		} else if (!fundCode.equals(other.fundCode))
			return false;
		if (fundId == null) {
			if (other.fundId != null)
				return false;
		} else if (!fundId.equals(other.fundId))
			return false;
		if (fundName == null) {
			if (other.fundName != null)
				return false;
		} else if (!fundName.equals(other.fundName))
			return false;
		return true;
	}

	public String getCashARAPId() {
		return cashARAPId;
	}

	public void setCashARAPId(String cashARAPId) {
		this.cashARAPId = cashARAPId;
	}

	public String getCashARAPNo() {
		return cashARAPNo;
	}

	public void setCashARAPNo(String cashARAPNo) {
		this.cashARAPNo = cashARAPNo;
	}

	public String getFundId() {
		return fundId;
	}

	public void setFundId(String fundId) {
		this.fundId = fundId;
	}

	public String getFundCode() {
		return fundCode;
	}

	public void setFundCode(String fundCode) {
		this.fundCode = fundCode;
	}

	public String getFundName() {
		return fundName;
	}

	public void setFundName(String fundName) {
		this.fundName = fundName;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public BigDecimal getArapAmount() {
		return arapAmount;
	}

	public void setArapAmount(BigDecimal arapAmount) {
		this.arapAmount = arapAmount;
	}

	public Date getArapDate() {
		return arapDate;
	}

	public void setArapDate(Date arapDate) {
		this.arapDate = arapDate;
	}

	public Integer getArapFlag() {
		return arapFlag;
	}

	public void setArapFlag(Integer arapFlag) {
		this.arapFlag = arapFlag;
	}

	public Integer getArapType() {
		return arapType;
	}

	public void setArapType(Integer arapType) {
		this.arapType = arapType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
